home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / WWIV Mods / CHEERS01.MOD < prev    next >
Encoding:
Text File  |  1992-12-25  |  5.8 KB  |  145 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name:      CHEERS01.MOD             Mod Author:   Cheers               │
  3. │ Difficulty:    Easy                     Date:         December 22, 1992    │
  4. │ File(s) Modded:NEWUSER.C                WWIV Version: 4.21a(or lower)      │
  5. │ Description:   Adds to newuser logon information and puts it in a box.     │
  6. │                                                                            │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8.  
  9.   ══╡ INFO ╞══
  10.  
  11.     Well, this is my first published mod, and I should have a couple more
  12.   coming out soon.  It's fairly simple, and should take at the most about five
  13.   minutes.
  14.  
  15.   ══╡ DISCLAIMER ╞══
  16.  
  17.     All I can say is that if you use this mod and it makes your monitor
  18.   implode, or your hair stand up on end, it's not my fault.  And if you screwed
  19.   things up and didn't back up your sources, all I can say is 'Oh Well'.  But
  20.   other than that, I doubt you'll get any serious problems.
  21.  
  22.   ══╡ THE MOD ╞══
  23.  
  24. /* EXISTING */      input_pw();
  25. /* EXISTING */  }
  26. /* EXISTING */
  27. /* EXISTING */  if (!hangup)
  28. /* EXISTING */    do {
  29.  
  30.   ══╡ block read this in ╞══
  31.  
  32.     if (okansi()){
  33.       nl();
  34.       nl();
  35.       npr("5┌────────────────────────────────────────────────────────────────────────┐\r\n");
  36.       npr("5│71. 1Name       7: 3%-30s                          5│\r\n",thisuser.name);
  37.       if (syscfg.sysconfig & sysconfig_no_alias)
  38.     npr("5│72. 1City, State7: 3%s\r\n",thisuser.realname);
  39.       else
  40.     npr("5│72. 1Real Name  7: 3%-20s",thisuser.realname);
  41.       npr(" 73. 1Callsign      7: 3%-6s          5│\r\n",thisuser.callsign);
  42.       npr("5│74. 1Phone No.  7: 3%-10s        ",thisuser.phone);
  43.       npr(" 75. 1Gender        7: 3%c               5│\r\n",thisuser.sex);
  44.       npr("5│76. 1Birthdate  7: 3%02d7/3%02d7/3%02d            ",
  45.     (int) thisuser.month, (int) thisuser.day, (int) thisuser.year);
  46.       npr(" 77. 1Computer type 7: 3%-15s 5│\r\n",ctypes[thisuser.comp_type]);
  47.       npr("5│78. 1Screen size7: 3%2d 7X 3%2d             ",
  48.     thisuser.screenchars, thisuser.screenlines);
  49.       npr(" 79. 1Password      7: 3%-8s        5│\r\n",thisuser.pw);
  50. /* note #1 */      npr("5│7A. 1Address    7: 3%-30s                          5│\r\n",thisuser.street);           /* add */
  51. /* note #1 */      npr("5│7B. 1City7, 1State7: 3%-30s                          5│\r\n",thisuser.citystate);        /* add */
  52. /* note #1 */      npr("5│7C. 1Zipcode    7: 3%-5s                                                   5│\r\n",thisuser.zip);              /* add */
  53.       pl("5│                                                                        5│");
  54.       npr("5│7D. 1Pause on screen   7: 3%-3s         ",
  55.      (thisuser.sysstatus & sysstatus_pause_on_page)?"On ":"Off");
  56.       if (okansi()) {
  57.         npr(" 7E. 1Extended color7: 3%-3s5             │\r\n",
  58.           (thisuser.sysstatus & sysstatus_funky_colors)?"Yes":"No ");
  59.         npr("5│   1Full screen editor7: 3%-20s                         5│\r\n",
  60.           ((thisuser.defed) && (thisuser.defed<=numed))?
  61.         editors[thisuser.defed-1].description:"None.");
  62.       }
  63.       pl("5│                                                                        5│");
  64.       pl("5│7Q. 1Everything is correct7.                                               5│");
  65.       npr("5└────────────────────────────────────────────────────────────────────────┘\r\n");
  66.       nl();
  67.       nl();
  68.       prt(2,"Which (1-9,A-E,Q) : ");
  69.       ch=onek("QABCDE123456789");
  70.       ok=0;
  71.       switch(ch) {
  72.         case 'Q': ok=1; break;
  73.         case '1': input_name(); break;
  74.         case '2': input_realname(); break;
  75.         case '3': input_callsign(); break;
  76.         case '4': input_phone(); break;
  77.         case '5': input_sex(); break;
  78.         case '6': input_age(&thisuser); break;
  79.         case '7': input_comptype(); break;
  80.         case '8': input_screensize(); break;
  81.     case '9': input_pw(); break;
  82. /* note #1 */        case 'A': input_street(); break;                  /* ADD - FROM MOD */
  83. /* note #1 */    case 'B': input_citystate(); break;               /* ADD - FROM MOD */
  84. /* note #1 */    case 'C': input_zip(); break;                     /* ADD - FROM MOD */
  85.     case 'D': input_pause(); break;
  86.     case 'E': input_extend(); break;
  87.       }
  88.     } else {
  89.  
  90.   ══╡ stop block reading ╞══
  91.  
  92. /* EXISTING */      nl();
  93. /* EXISTING */      nl();
  94. /* EXISTING */      npr("1. Name          : %s\r\n",thisuser.name);
  95. /* EXISTING */      if (syscfg.sysconfig & sysconfig_no_alias)
  96. /* EXISTING */        npr("2. City, State   : %s\r\n",thisuser.realname);
  97. /* EXISTING */      else
  98.  
  99. /* EXISTING */    case '7': input_comptype(); break;
  100. /* EXISTING */    case '8': input_screensize(); break;
  101. /* EXISTING */    case '9': input_pw(); break;
  102. /* EXISTING */      }
  103. /*   ADD    */     }
  104. /* EXISTING */    } while ((!ok) && (!hangup));
  105. /* EXISTING */
  106. /* EXISTING */  if (!hangup) {
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  ══╡ NOW ADD THESE VOIDS ANYWHERE IN NEWUSER.C ╞══
  113.  
  114. void input_pause()
  115. {
  116.  if (thisuser.sysstatus & sysstatus_pause_on_page)
  117.     thisuser.sysstatus ^= sysstatus_pause_on_page;
  118.   nl();
  119.   pl("Pause each screenfull? ");
  120.     if (yn())
  121.       thisuser.sysstatus |= sysstatus_pause_on_page;
  122. }
  123.  
  124. void input_extend()
  125. {
  126.  if (thisuser.sysstatus & sysstatus_funky_colors)
  127.     thisuser.sysstatus ^= sysstatus_funky_colors;
  128.   nl();
  129.   pl("Use extended colors? ");
  130.     if (yn())
  131.        thisuser.sysstatus |= sysstatus_funky_colors;
  132. }
  133.  
  134.   ══╡ NOTES ╞══
  135.  
  136.     #1: if you don't have the from mod put in, just remove these few
  137.   lines from the program.....
  138.  
  139.   ══╡ COMPILE ╞══
  140.  
  141.     That should be about it....if you have any problems feel free to
  142.   give my board CHEERS a call at (410) 692-9410, or e-mail me RenegadeNet
  143.   node @13007.  Good Luck:)
  144.  
  145.